package com.xw.p02_proxy.Impl;

import com.xw.p02_proxy.KindWomen;

/**
 * @author XW
 * @data 2023/12/4 14:27
 * @description 王婆这个人老聪明了，她太老了，是个男人都看不上，
 *  但是她有智慧有经验呀，她作为一类女人的代理！
 */
public class WangPo implements KindWomen {
    private KindWomen kindWomen;

    /**默认代理的潘金莲*/
    public WangPo() {
        this.kindWomen = new PanJinLian();
    }
    /**也可以是这种类型的人的代理*/
    public WangPo(KindWomen kindWomen) {
        this.kindWomen = kindWomen;
    }

    @Override
    public void makeEyesWithMan() {
        this.kindWomen.makeEyesWithMan();
    }

    @Override
    public void happyWithMan() {
        this.kindWomen.happyWithMan();
    }
}
